﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MilageMVC.Models
{
    public class Mileage
    {




        public int MileageID { get; set; }

        [Range(0,1500)]
        [Required]

        public int Distance { get; set; }
        public DistanceType DistanceType { get; set; }


        [DataType(DataType.Date)]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public DateTime DateEntered { get; set; }

        public int VehicleID { get; set; }

        [Required]
        public double VolumeAmount { get; set; }

 

        [Required]
        public VolumeUnit VolumeUnits { get; set; }

        public string UserName { get; set; }
    }

   

    //public enum Distance
    //{
    //    Kilometers,
    //    Miles
    //}

}